Skip to content

fix(path): copy elements in CGPath.copy and mutableCopy - #16

Merged
Kyle-Ye merged 1 commit into
mainfrom
feature/path_shape
Nov 22, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
feature/path_shape

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Nov 22, 2026

Copy link
Copy Markdown
Member

Implement independent element copying and optional affine transformation for CGPath copy APIs:

  • Replace CGPath.mutableCopy() downcasting (self as? CGMutablePath) with independent CGMutablePath(elements:) allocation so base CGPath instances succeed and mutations do not alias the source path.
  • Add CGPath.copy(), CGPath.copy(using:), and CGPath.mutableCopy(using:), applying non-identity transforms to path element points matching CoreGraphics semantics.
  • Add shared CGPathTests coverage across CoreGraphics and OpenCoreGraphics backends.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T08:09:39.639592Z 04cb727 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Kyle-Ye
Kyle-Ye merged commit 89eb709 into main Nov 22, 2026
3 checks passed
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.92308% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.92%. Comparing base (9089c96) to head (04cb727).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/OpenCoreGraphics/CGPath.swift 92.30% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   92.62%   92.92%   +0.30%     
==========================================
  Files          21       21              
  Lines        1506     1570      +64     
==========================================
+ Hits         1395     1459      +64     
  Misses        111      111              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants